import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

/**
 * Toast 封装
 */
class ToastUtils{
  static toast(String msg,{BuildContext? context,int? code}){
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_LONG,
      gravity: ToastGravity.TOP,
      timeInSecForIosWeb: 1,
      backgroundColor: Colors.grey,
      textColor: Colors.white,
      fontSize:15,
    );

  }
}